package cn.smartorigin.soas.frame;

import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.UIManager;

public class PopupDialogFrame extends JFrame{
	
	public PopupDialogFrame(){
		this.setIconImage(new ImageIcon("img/sosa_logo.png").getImage());
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.setSize(600,400);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.initBackGround();
		this.initFont();
		this.setVisible(true);
	}
	
	private void initBackGround(){	  
		  ImagePanel ip = new ImagePanel(new ImageIcon("res/images/dialog_bg.png"));
		  this.setContentPane(ip); 
	}
	
	private void initFont(){
		Font font = new Font("宋体", Font.PLAIN, 12);
		UIManager.put("Button.font", font);
		UIManager.put("Label.font", font);
		UIManager.put("ComboBox.font", font);

	}

}
